package com.itheima.dbservice;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.mapper.ReportMapper;
import com.itheima.pojo.Report;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class ReportServiceApiImpl implements ReportServiceApi{
    @Autowired
    private ReportMapper reportMapper;

    @Override
    public Report getById(Integer id) {
        LambdaQueryWrapper<Report> lqw = new LambdaQueryWrapper<>();
        lqw.eq(Report::getId, id);
        return reportMapper.selectOne(lqw);
    }
}
